package com.test.service.impl;

import com.test.dao.ITimingTaskSettingDao;
import com.test.model.TimingTaskSetting;
import com.test.service.AsyncTaskService;
import com.test.service.ITimingTaskSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ZZF on 2017/6/27.
 */
@Service
public class TimingTaskSettingServiceImpl  implements ITimingTaskSettingService{

    @Autowired
    ITimingTaskSettingDao timingTaskSettingDao;

    @Autowired
    AsyncTaskService asyncTaskService;


    public List<TimingTaskSetting> getALL() {
        return timingTaskSettingDao.getAll(TimingTaskSetting.class);
    }

    @Override
    public void executeAsyncTask() {
        asyncTaskService.executeAsyncTask();
    }

}
